What is wrong with this? cant figure it out... perhaps the square sign i'm using is the wrong square sign?
Code:
#include <stdio.h>
int main ()
{
double m;
double n;
double side1;
double side2;
double hypo;
printf ("Enter the side of n\n");
scanf ("%lf", &n);
printf ("Now enter the side of m\n");
scanf ("%lf", &m);
side1 = m^2 - n^2;
printf ( "Side 1 is" );
printf ("%lf", side1);
return 0
}
the program isnt done, but i thought i check that 1st part, and keep getting the error
15 C:\Documents and Settings\Emir\Desktop\C\Class\triangle.c invalid operands to binary ^
?